<script>
	var pnum = {$pnum};
	{if condition="(isset($filter)) AND ($filter)"}
	var filter = {$filter};
	{/if}
	{if condition="(!isset($search)) OR (!$search)"}
	var search = 0;
	var goUrl = "/{$Request.module}/assemble/lst/filter/"+filter+".html?page="+pnum;
	{else/}
	var search = {$search};
	var goUrl = "/{$Request.module}/assemble/search.html?page="+pnum;
	{/if}
</script>    

                  
                        <table class="table table-hover table-bordered">
                            <thead>
                                <tr>
                                    <th style="width:5%">ID</th>
                                    <th style="width:10%">商户名称</th>
                                    <th style="width:10%">开团团长</th>
                                    <th style="width:10%">拼团商品图片</th>
                                    <th style="width:20%">商品信息</th>
                                    <th style="width:15%">拼团时间</th>
                                    <th style="width:4%">几人团</th>
                                    <th style="width:6%">参与人次</th>
                                    <th style="width:6%">状态</th>
                                    <th style="width:15%">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            {if condition="!empty($list)"}
							{foreach name="list" item="v"}
                                <tr>
                                    <td>{$v.id}</td>
                                    <td>{$v.shop_name}</td>
                                    <td>{$v.user_name}</td>
                                    <td><img src="{$v.thumb_url}" class="pop_goods_thumb" onerror="this.src='__PUBLIC__/admin/img/nopic.jpg'"/></td>
                                    <td>{$v.goods_name}&nbsp;&nbsp;{$v.goods_attr_str}</td>
                                    <td>起：{:date('Y-m-d H:i:s',$v['time'])}<br>止：{if condition="!empty($v['com_time'])"}{:date('Y-m-d H:i:s',$v['com_time'])}{else}{/if}</td>
                                    <td>{$v.pin_num}</td>
                                    <td>{$v.tuan_num}</td>
                                    <td>
                                        {if condition="$v['pin_status'] eq 0"}
                                        <span style="color:#1c84c6;">拼团中</span>
                                        {elseif condition="$v['pin_status'] eq 1"/}
                                        <span style="color:#1c84c6;">拼团成功</span>
                                        {elseif condition="$v['pin_status'] eq 2"/}
                                        <span style="color:#ed5565;">拼团失败</span>
                                        {/if}
                                    </td>
                                    <td>     
                                        <button type="button" class="btn btn-info btn-xs" onclick="group_info({$v.id},this);"><i class="fa fa-paste"></i>&nbsp;查看详细</button>&nbsp;&nbsp;&nbsp;&nbsp;
                                    </td>
                                </tr>
							{/foreach}
							{else/}
							<tr><td colspan="9" style="text-align:center; font-size:14px;">没有找到相关数据</td></tr>
							{/if}				
                            </tbody>
                        </table>
                        <div class="row"><div class="pagination" style="float:right; margin-right:20px;">{$page}</div></div>